<div id="hey">asdfsadfasf </div>
<div id="aw"> </div>
<div id="post_container">
    <?php echo validation_errors(); ?>
        <?php echo form_open('post/create', array('id' => 'create_post_form')); ?>
            <div id="editor">
                <p>Title: <input type="text" id="post_title" name="title"/></p>
                <a href="#" id="addSum">Press to insert summary ▼</a>
                    <div id="sum_con">
                        <textarea name="summary"></textarea>
                    </div>
                <p>Content: <textarea id="post_full_text" name="full_text"></textarea></p>
                <!--<a id="wew" href="#">Attach image</a>-->
                <a id="wew" href="#">Attach image</a>
                <a href="#">Attach link</a>
            </div>
            <div id="editor_toolbar">
                <input type="submit" name="publish" value="Publish" id="btn_submit" />
                <input type="submit" name="save" value="Save" id="btn_submit" />
                <input type="submit" name="preview" value="Preview" id="btn_submit" />
                <input type="button" id="post_cancel" value="Cancel" onclick="window.location='<?php echo base_url() ?>post';" />
                
                <p>Category: </p>
                <p id="success_cat"></p>
                <select id="listahan" name="category">
                    <?php  
                        foreach ($category->result() as $row){
                            echo "<option value=$row->category_id> $row->category_name</option>";
                        }
                    ?>
                </select>
                <a id="addCate" href="#">Add Category</a>
                    <div id="cate">
                        <input type="text" id="newCat" name="newCat" value="Enter your category here"/>
                        <!--input type="submit" name="submitCate" value="Add"/-->
                        <span onclick="add_category()">Add</span>
                    </div>
                <p>Destination: </p>
                <p><input type="checkbox" name="bulletin" value="" checked/>Bulletin</p>
                <p><input type="checkbox" id="groups" name="groups" value=""/>Groups</p>
                    <div id="group_box">
                        <p>List of Groups</p>
                        <?php
                        if($this->session->userdata('role') === 'admin')
                        foreach ($groups->result() as $row){
                            echo "<input class=samp name=samp[] type=checkbox value=$row->group_id disabled />$row->group_name";
                            echo "<br/>";
                        }
                        ?>
                    </div>
            </div>
        <div id="balancer"></div>
</div>